package cn.schoolwow.quickdao.test.module.business.user.transaction.rollback.testcase;

import cn.schoolwow.quickdao.test.module.business.user.dml.user.flow.add.RebuildUserFlow;
import cn.schoolwow.quickdao.test.module.business.user.transaction.rollback.flow.CheckRollbackCreateNumberColumnResultFlow;
import cn.schoolwow.quickdao.test.module.business.user.transaction.rollback.flow.RollbackCreateNumberColumnTransactionFlow;
import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;

public class RollbackCreateNumberColumnTestCaseFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new RebuildUserFlow())
                .next(new RollbackCreateNumberColumnTransactionFlow())
                .next(new CheckRollbackCreateNumberColumnResultFlow())
                .execute();
    }

    @Override
    public String name() {
        return "回滚创建工号字段事务操作测试用例";
    }
}
